package cn.lu.joke.ui.mine.activity;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;

import butterknife.BindView;
import butterknife.OnClick;
import cn.lu.joke.R;
import cn.lu.joke.adapter.decoration.ItemDividerDecoration2;
import cn.lu.joke.base.BaseActivity;
import cn.lu.joke.util.UnitUtils;

public class SettingActivity extends BaseActivity {

    @BindView(R.id.tv_title_left)
    TextView mTitleLeft;
    @BindView(R.id.tv_title_center)
    TextView mTitleCenter;
    @BindView(R.id.tv_title_right)
    TextView mTitleRight;
    @BindView(R.id.tv_exit_login)
    TextView mTvExitLogin;
    @BindView(R.id.rv_setting)
    RecyclerView mRecycleView;

    @Override
    public int getLayout() {
        return R.layout.activity_setting;
    }

    @Override
    protected void onCreated() {
        mTitleCenter.setText("设置");
        mTitleCenter.setTextSize(14);

        mRecycleView.setLayoutManager(new LinearLayoutManager(this));
        ItemDividerDecoration2 decoration = new ItemDividerDecoration2(this, LinearLayoutManager.HORIZONTAL, UnitUtils.dp2px(1), 0xffF1F1F1);
        mRecycleView.addItemDecoration(decoration);
    }

    @OnClick({R.id.tv_title_left, R.id.tv_title_center, R.id.tv_title_right,R.id.tv_exit_login})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.tv_title_left:
                break;
            case R.id.tv_title_center:
                break;
            case R.id.tv_title_right:
                break;
            case R.id.tv_exit_login:
                break;
        }
    }
}
